package com.yc.cloud.portal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.cloud.common.basic.dto.BaseQueryParam;
import com.yc.cloud.entity.Order;
import com.yc.cloud.portal.request.OrderCreateParam;
import com.yc.cloud.portal.vo.OrderCreateVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Yancy
 * @since 2024-01-18
 */
public interface OrderService extends IService<Order> {

    /***
     * description:查询列表
     * @param param 查询条件
     * @return 数据信息
     */
    IPage<Order> list(BaseQueryParam param);

    Order convertVo(Order order);

    OrderCreateVo create(OrderCreateParam param);

    Order get(Long id);

    Order update(Long id, Order order);

    boolean delete(Long id);

    String payNotify(HttpServletRequest request);

    boolean cancelOrder(Long id);

    List<Order> listByOrderStatus(String orderStatus);
}



